<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        span{
            border: 1px aqua solid;
            display: inline-block;
            width: 65px;
            height: 30px;
            text-align: center;
            line-height: 30px;
        }
    </style>
</head>
<body>
    <script>
        for(n=1;n<=9;n++){
            for(s=1;s<=n;s++){
                document.write('<span>' + s + '*' + n + '=' + s*n + '</span>') 
            }
            document.write('<br>')
        }
    </script>
</body>
</html>